setClass("VBFrameworkFinalResult",
		representation(
				.description="character",
				"VIRTUAL"
		),
		prototype=prototype(
				.description="Virtual Bootstrap Framework Final Result computer class"
		
		)
)  
#generic functions
setGeneric("computeBFResult",function(.Object,inputList,...){standardGeneric("computeBFResult")})

#initialization method 
setMethod("initialize",
		signature="VBFrameworkFinalResult",
		function(.Object,...){
			return(.Object)
		})

setMethod("get_description",
		signature="VBFrameworkFinalResult",
		definition=function(.Object){
			.Object@.description
		})

setMethod("computeBFResult",
		signature="VBFrameworkFinalResult",
		definition=function(.Object,inputList,...){
			if(!is.list(inputList)){
				stop("inputList must be list")
			}
			for(i in 1:length(inputList)){
				if(!is.matrix(inputList[[i]])){
					stop("all elements of list must be matrix type")
				}
				if(dim( inputList[[i]])[1] !=1 ){
					stop("all matrices must have one row")
				}
				if(is.null( rownames(inputList[[i]]) )){
					stop("all matrices must have row names")
				}
			}
			return(0.0)
		}
)  
